﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using TestCAI.DTO;


namespace TestCAI.Models
{
    public class CaiViewModel
    {
        public TestCAI.DTO.CaiDTO cai { get; set; }

        public List<Object> DropDownSelection = new List<Object>()
        {
            new  { Id = true, Name = "Acceptable"},
            new {Id = false, Name = "Unacceptable"}
        };

        public IEnumerable<SelectListItem> DropDownItems
        {
            get
            {
                return new SelectList(DropDownSelection, "Id", "Name");
            }
        }

        public List<ShoppingCenterDTO> ShoppingCenters;

        public IEnumerable<SelectListItem> lstShoppingCenters
        {
            get
            {
                return new SelectList(ShoppingCenters, "StoreNumber", "ShoppingCenterName");
            }
        }
    }
}